package com.imooc.order.dataobject;

import lombok.Data;
import javax.persistence.Id;
import javax.persistence.Entity;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Description: 订单详情类
 * Project: order <br />
 * ClassName: OrderDetail <br />
 * Copyright: Copyright (c) 2018 deshang<br />
 *
 * @author Wang Shaopeng
 * @date 2018/12/6 22:23
 * @modifier
 * @modifyContent
 */
@Data
@Entity
public class OrderDetail {
    @Id
    private String detailId;

    /**
     * 订单id
     */
    private String orderId;

    /**
     * 商品id
     */
    private String productId;

    /**
     * 商品名称
     */
    private String productName;

    /**
     * 当前价格
     */
    private BigDecimal productPrice;

    /**
     * 商品数量
     */
    private Integer productQuantity;

    /**
     * 小图
     */
    private String productIcon;

    /**
     * '创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;
}
